package com.jian.exception;

import com.jian.common.ErrorCode;
import lombok.Getter;

@Getter
public class BusinessException extends RuntimeException {
    private final ErrorCode errorCode;
    private final String description;


    public BusinessException(ErrorCode errorCode,String description) {
        this.errorCode = errorCode;
        this.description = description;
    }
    public BusinessException(ErrorCode errorCode) {
        this(errorCode,null);
    }
}
